package com.gollum.system.domain.model;

import com.gollum.jpa.domain.HertherBaseEnity;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * 岗位表 sys_post
 *
 * @author herther
 */
@Getter
@Setter
@AllArgsConstructor
@Accessors(chain=true)
@NoArgsConstructor
@Entity
@Table(name = "sys_post")
@EntityListeners(AuditingEntityListener.class)
public class SysPost extends HertherBaseEnity
{
    private static final long serialVersionUID = 1L;

    /** 岗位编码 */
    @Column(name = "post_code",length = 50)
    private String postCode;

    /** 岗位名称 */
    @Column(name = "post_name",length = 50)
    private String postName;

    /** 岗位排序 */
    @Column(name = "post_sort",length = 50)
    private String postSort;

    /** 状态（0正常 1停用） */
    @Column(name = "status",length = 10)
    private String status;

}
